<?php

include('../config.php');

$id = $_GET['id'];

$sql = "delete from shop where id=$id";

$res = mysql_query($sql);

if ($res) {
    // 删除成功
    echo json_encode(array(
        "code" => 200,
        "msg" => "删除成功"
    ));
} else {
    echo json_encode(array(
        "code" => 500,
        "msg" => "网络错误，请重试"
    ));
}

?>